package com.bilin.coin.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class CoinBean implements Parcelable {


    /**
     * ak : string
     * confirmTimes : 0
     * createTime : 2020-04-30T05:13:16.465Z
     * id : 0
     * ip : string
     * isCharge : true
     * isWithdraw : true
     * name : string
     * port : string
     * sk : string
     * status : 0
     * updateTime : 2020-04-30T05:13:16.465Z
     * url : string
     * version : 0
     * withdrawFee : string
     * withdrawMaxAmount : 0
     * withdrawMinAmount : 0
     */

    private String ak;
    private String confirmTimes;
    private String createTime;
    private String id;
    private String ip;
    private boolean isCharge;
    private boolean isWithdraw;
    private String name;
    private String port;
    private String sk;
    private String status;
    private String updateTime;
    private String url;
    private String version;
    private String withdrawFee;
    private String withdrawMaxAmount;
    private String withdrawMinAmount;
    private String title;

    protected CoinBean(Parcel in) {
        ak = in.readString();
        confirmTimes = in.readString();
        createTime = in.readString();
        id = in.readString();
        ip = in.readString();
        isCharge = in.readByte() != 0;
        isWithdraw = in.readByte() != 0;
        name = in.readString();
        port = in.readString();
        sk = in.readString();
        status = in.readString();
        updateTime = in.readString();
        url = in.readString();
        version = in.readString();
        withdrawFee = in.readString();
        withdrawMaxAmount = in.readString();
        withdrawMinAmount = in.readString();
        title = in.readString();
    }

    public static final Creator<CoinBean> CREATOR = new Creator<CoinBean>() {
        @Override
        public CoinBean createFromParcel(Parcel in) {
            return new CoinBean(in);
        }

        @Override
        public CoinBean[] newArray(int size) {
            return new CoinBean[size];
        }
    };

    public String getAk() {
        return ak;
    }

    public void setAk(String ak) {
        this.ak = ak;
    }

    public String getConfirmTimes() {
        return confirmTimes;
    }

    public void setConfirmTimes(String confirmTimes) {
        this.confirmTimes = confirmTimes;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public boolean isCharge() {
        return isCharge;
    }

    public void setCharge(boolean charge) {
        isCharge = charge;
    }

    public boolean isWithdraw() {
        return isWithdraw;
    }

    public void setWithdraw(boolean withdraw) {
        isWithdraw = withdraw;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getSk() {
        return sk;
    }

    public void setSk(String sk) {
        this.sk = sk;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getWithdrawFee() {
        return withdrawFee;
    }

    public void setWithdrawFee(String withdrawFee) {
        this.withdrawFee = withdrawFee;
    }

    public String getWithdrawMaxAmount() {
        return withdrawMaxAmount;
    }

    public void setWithdrawMaxAmount(String withdrawMaxAmount) {
        this.withdrawMaxAmount = withdrawMaxAmount;
    }

    public String getWithdrawMinAmount() {
        return withdrawMinAmount;
    }

    public void setWithdrawMinAmount(String withdrawMinAmount) {
        this.withdrawMinAmount = withdrawMinAmount;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(ak);
        dest.writeString(confirmTimes);
        dest.writeString(createTime);
        dest.writeString(id);
        dest.writeString(ip);
        dest.writeByte((byte) (isCharge ? 1 : 0));
        dest.writeByte((byte) (isWithdraw ? 1 : 0));
        dest.writeString(name);
        dest.writeString(port);
        dest.writeString(sk);
        dest.writeString(status);
        dest.writeString(updateTime);
        dest.writeString(url);
        dest.writeString(version);
        dest.writeString(withdrawFee);
        dest.writeString(withdrawMaxAmount);
        dest.writeString(withdrawMinAmount);
        dest.writeString(title);
    }
}
